package com.yld.scott.ch03;


import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.junit.Test;

public class DateTest {
	
	
	@Test
	public void date() throws Exception {
		
		
		Date date= new Date();
		
		System.out.println(date);
		
		
		DateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SSS");
		
		System.out.println(sdf.format(date));;
		
	}

}
